-- GENERATED SPELL FOR [Bronze Shrine Warden] --


function spell0_26277(pUnit, Event) --@Sand Breath,n/a--
pUnit:FullCastSpellOnTarget(20716,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26277', 12000, 1)
end

function spell1_26277(pUnit, Event) --@Stop Time,Self--
pUnit:FullCastSpellOnTarget(60077,pUnit)
pUnit:RegisterEvent('Sorts_26277', 10277, 1)
end

function Sorts_26277(pUnit, Event)
local choix_sorts_26277 = math.random(0, 1)
if choix_sorts_26277 == 0 then
pUnit:RegisterEvent('spell0_26277', 1, 1)
end
if choix_sorts_26277 == 1 then
pUnit:RegisterEvent('spell1_26277', 1, 1)
end
end

function mob26277_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26277', math.random(1500, 3000), 1)
end

function mob26277_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26277_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26277_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26277, 1, 'mob26277_Action')
RegisterUnitEvent(26277, 2, 'mob26277_Leave')
RegisterUnitEvent(26277, 3, 'mob26277_Kill')
RegisterUnitEvent(26277, 4, 'mob26277_Die')
